import 'package:json_annotation/json_annotation.dart';
import 'Article.dart';

part 'Navigation.g.dart';

@JsonSerializable(explicitToJson: true)
class Navigation {
  final int cid;
  final String name;
  final List<Article> articles;

  Navigation(this.cid, this.name, this.articles);

  factory Navigation.fromJson(Map<String, dynamic> json) =>
      _$NavigationFromJson(json);

  Map<String, dynamic> toJson() => _$NavigationToJson(this);
}
